package de.tum.in.eist.poll.shared.beans;


import java.io.Serializable;

/**
 * Answer implementation carrying a text. Corresponds with
 * {@link TextQuestion}.
 * 
 * @author The EIST-POLL-21 team.
 *
 */
public final class TextAnswer extends Answer implements Serializable {
	
	/**
	 * serialization version 
	 */
	private static final long serialVersionUID = 1L;
	
	private String text;
	
	/**
	 * Dummy constructor for GWT.
	 */
	public TextAnswer() {
		this.text = "";
	}
	
	/**
	 * Construct a new TextAnswer carrying an answer text.
	 * 
	 * @param text The answer text
	 */
	public TextAnswer(String text) {
		this.text = text;
	}

	/**
	 * @return The answer text
	 */
	public String getText() {
		return this.text;
	}
}
